using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;

public class Grid : MonoBehaviour
{
    public int row;//格子的行
    public int col;//格子的列
    public bool IsCanMove;//是否可以移动 因障碍物引起的
    
    public Character gridCharacter
    {
        get
        {
            return GameManager.Instance.characters.FirstOrDefault(character => character.characterGrid == this);
        }
    }
    
    
    
    
    public int gCost,hCost;

    public int fCost=>gCost + hCost;

    public Grid parent;

}